<% @main_header = "#{link_to('Ptrack', '/')}:#{link_to('Project Patterns',url_for(:controller=>'patterns'))}:#{@pattern.title} " %>
<% @title = 'Show Project Pattern' %>
<div class="span-12 last colborder">
  <table>
    <tr>
      <td><b>Project Pattern Title:</b></td>
      <td><%=@pattern.title %></td>
    </tr>
    <tr>
      <td><b>Phases:</b></td>
      <td><ul>
          <% @pattern.patterns_phases.each do |patterns_phase| %>
            <li><b>Phase Name: </b><%=patterns_phase.phase.name%><br>
            <b>Phase Weight in Pattern: </b> <%=patterns_phase.weight%> %</li>
            <br>
          <%  end  %>

        </ul>
      </td>
    </tr>
    <tr>
      <td><%= link_to 'Edit', edit_pattern_path(@pattern) %> |
      <%= link_to 'Back', patterns_path %></td>

    </tr>

  </table>
</div>

